package com.sky.service.user.impl;

import com.sky.entity.Dish;
import com.sky.mapper.user.SetmealDishMapper;
import com.sky.service.user.SetmealDishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userSetmealDishService")
public class SetmealDishServiceImpl implements SetmealDishService {

    @Autowired
    private SetmealDishMapper setmealDishMapper;

    /**
     * 根据套餐id查询菜品
     *
     * @param id
     * @return
     */
    @Override
    public List<Dish> selectDishBySetmealId(Long id) {
        List<Dish> dishList = setmealDishMapper.selectDishBySetmealId(id);
        return dishList;
    }
}
